package com.whacos.common.exception;

/**
 * @author xiongdun
 * @description 异常处理 工具类
 * @since 2018/11/17 17:11
 */
public class ExceptionUtils {

    public static String getExceptionAllinformation(Exception ex) {
        String sOut = "";
        StackTraceElement[] trace = ex.getStackTrace();
        for (StackTraceElement s : trace) {
            sOut += "\tat " + s + "\r\n";
        }
        return sOut;
    }
}
